home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / capslock.zip / CAPSLOCK.DOC < prev    next >
Text File  |  1988-10-09  |  10KB  |  205 lines

  1.  
  2.                                                      CAPSLOCK   Page - 1 -
  3.  
  4.  
  5.        DESCRIPTION       DESCRIPTION
  6.        -----------
  7.        CAPSLOCK makes your Caps Lock key  reign  supreme  over  the  Shift
  8.        keys.  When your Caps Lock is ON, CAPSLOCK  ensures alphabetic keys
  9.        are typed in upper case even while Shift is pressed.  This prevents
  10.        annoyances  like:   eVERY gOOD bOY dESERVES fAVOR !    A simple key
  11.        press turns CAPSLOCK's action OFF / ON at will.   When  OFF  typing
  12.        behaves  exactly  as originally designed.  As a secondary function,
  13.        CAPSLOCK optionally presets all the keyboard toggle  keys  to  your
  14.        preferences  when  you install it.  CAPSLOCK is memory resident but
  15.        consumes only 464 bytes of your precious memory.
  16.  
  17.  
  18.        INSTALLING CAPSLOCK       INSTALLING CAPSLOCK
  19.        -------------------
  20.        To install CAPSLOCK, type at the DOS prompt:
  21.  
  22.                                     CAPSLOCK                                    CAPSLOCK
  23.  
  24.        CAPSLOCK reports the status of each toggle  key  and  an  installed
  25.        message,  and returns to DOS.  That's all there is to it.  CAPSLOCK
  26.        and your system are now ready for use.  You may need to  explicitly
  27.        specify  the  path to the directory you keep CAPSLOCK.COM if DOS is
  28.        unable to find it.
  29.  
  30.        When you power up, you can additionally use CAPSLOCK to  initialize
  31.        your  toggle  keys the way you like them.  Those of you who learned
  32.        to use the numeric key pad as a cursor key  pad  with  Number  Lock
  33.        OFF,  and  then  upgraded  to a new machine which boots up with the
  34.        Number Lock ON, will find this handy!  To preset a toggle key  when
  35.        you  install CAPSLOCK, add one or more of the indicated switches to
  36.        the CAPSLOCK command line:
  37.  
  38.                               CAPSLOCK /Nx /Cx /Sx                              CAPSLOCK /Nx /Cx /Sx
  39.        Where:
  40.            /Nx  Presets the Number Lock.
  41.            /Cx  Presets the Caps Lock.
  42.            /Sx  Presets the Scroll Lock.
  43.              x  Specifies the position desired.  Where:
  44.                  - Turns the key OFF.
  45.                  + (or no entry) Turns the key ON.
  46.  
  47.        Examples:
  48.          CAPSLOCK  /N- /C+  Turns the Number Lock OFF, the Caps Lock ON,
  49.                             and installs CAPSLOCK.
  50.          CAPSLOCK  /C       Turns the Caps Lock ON and installs CAPSLOCK.
  51.                             (Note the absents of a + or - defaults to +
  52.                             and turns the key on.)
  53.  
  54.        If you inadvertently specify something that CAPSLOCK doesn't under-
  55.        stand,  it does not go resident.  Instead, it beeps the speaker and
  56.        automatically displays a help screen.
  57.  
  58.        To install CAPSLOCK automatically without fuss and  bother,  add  a
  59.        CAPSLOCK command with or without options to your AUTOEXEC.BAT file.
  60.  
  61.  
  62.                                                      CAPSLOCK   Page - 2 -
  63.  
  64.  
  65.        USING CAPSLOCK       USING CAPSLOCK
  66.        --------------
  67.        CAPSLOCK always installs itself in the active state.  You can acti-
  68.        vate  or  deactivate CAPSLOCK by pressing both left and right Shift
  69.        keys simultaneously.  CAPSLOCK signals its mode change by  chirping
  70.        to  you.   A down-chirp signals switching OFF, and an up-chirp sig-
  71.        nals ON.  Don't mind if you don't get a chirp when attempting  mode
  72.        changes  in  rapid fire.  CAPSLOCK inhibits subsequent mode changes
  73.        made within a short time of the first.
  74.  
  75.        If you just want to check the command  line  syntax  for  CAPSLOCK,
  76.        type:
  77.  
  78.                           CAPSLOCK /?  or  CAPSLOCK /H                          CAPSLOCK /?      CAPSLOCK /H
  79.  
  80.        This  displays a help screen.  CAPSLOCK never goes resident when it
  81.        displays its help screen.
  82.  
  83.  
  84.        CAVEATS       CAVEATS
  85.        -------
  86.        I was so intent on keeping the code short and sweet that  I  didn't
  87.        give  CAPSLOCK  enough smarts to tell if it's already installed!  I
  88.        decided it wasn't worth it on the assumption that most people  will
  89.        install  CAPSLOCK  automatically through their AUTOEXEC.BAT file at
  90.        start up and will not be concerned with it later.  Running CAPSLOCK
  91.        without  specifying  the  help  option will load multiple copies in
  92.        memory.  Multiple copies won't hurt anything.   It  just  tends  to
  93.        slow  the  machine down unnecessarily due to redundant program code
  94.        being executed.  If you specify the  /?  or  /H  options,  you  can
  95.        safely  run  CAPSLOCK as many times as you wish without concern for
  96.        re-installing it.
  97.  
  98.        An easy --after the fact-- way to tell if you have multiple  copies
  99.        installed  is  to  attempt to switch CAPSLOCK ON or OFF.  Each copy
  100.        will chirp to you as they change modes.  So if you hear  more  than
  101.        one  chirp...   well, you should reboot at the next opportunity and
  102.        install CAPSLOCK once.
  103.  
  104.  
  105.                                                      CAPSLOCK   Page - 3 -
  106.  
  107.  
  108.        TECHNICAL STUFF       TECHNICAL STUFF
  109.        ---------------
  110.        Before  you  feed  this  dandy  little program to your machine, you
  111.        might like to know what it does.  Did you know that keystroke  data
  112.        sent  to the computer from the keyboard is simply an arbitrary num-
  113.        ber assigned to the key pressed?  One of the basic tasks  the  com-
  114.        puter  does  when a key is typed is to convert key numbers to mean-
  115.        ings for the keys.  The computer also maintains the position status
  116.        for  each  toggle  and  shift key.  For instance, when the computer
  117.        receives a key number corresponding to  the  [A]  key,  it  checks
  118.        --among other things-- the Shift key position.  If it is depressed,
  119.        it assigns "A" to the keystroke; and if not, "a" is assigned.   The
  120.        converted  keystrokes  are then placed in a temporary holding space
  121.        (buffer), where they wait patiently  for  our  programs  to  access
  122.        them.
  123.  
  124.        A  curse  to  many computer users is that the function of the Shift
  125.        key reverses when the Caps Lock is ON.  That is, under  the  influ-
  126.        ence  of  the  Caps  Lock, Shift causes "a" to be assigned vice the
  127.        expected "A".
  128.  
  129.        CAPSLOCK lets the computer process a keystroke any way  its  little
  130.        old  BIOS  code desires.  But when it's done, CAPSLOCK go to work.
  131.        It checks the Caps Lock and if ON, checks the keystroke just put in
  132.        the  buffer.  If it's a lower case letter, it is converted to upper
  133.        case.
  134.  
  135.        If CAPSLOCK detects both Shift keys  depressed  simultaneously,  it
  136.        takes  that  key combination as a command to toggle its functioning
  137.        ON or OFF.  If ON, it turns OFF, and vice versa.  It's  the  ON/OFF
  138.        switch  for CAPSLOCK.  To avoid having to write a confirmation mes-
  139.        sage on top of your application's screen, it enlists  the  services
  140.        of  the  computer's speaker.  It signals its new status by chirping
  141.        to you.  When it turns ON, it will chirp with  an  up-slide  tone.
  142.        When it turns OFF, a down-slide.
  143.  
  144.        The newer keyboards send additional data not related to a keystroke
  145.        to the computer.   CAPSLOCK  must  ignore  this  data  during  mode
  146.        changes.   To  accommodate these keyboards, CAPSLOCK locks out mode
  147.        changes within 0.66 seconds of a previous one.
  148.  
  149.        CAPSLOCK statistics:
  150.                        Interrupts used:  09 (keyboard hardware interrupt)
  151.                     BIOS data modified:  Keystroke data in buffer at
  152.                                          HEX 04:1E to 04:3D
  153.           Installed memory consumption:  464 bytes.
  154.  
  155.  
  156.                                                      CAPSLOCK   Page - 4 -
  157.  
  158.  
  159.        COMPATIBILITY       COMPATIBILITY
  160.        -------------
  161.        Now  for  the  disclaimers!    CAPSLOCK was designed for use on IBM
  162.        machines but should get along well with BIOS compatibles.
  163.  
  164.        To do its job, CAPSLOC